﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TvTipper.Entities
{
    public class Person : PersonMetadata
    {
        private string m_info;

        public Person()
        {
            Roles = new List<RoleEntity>();
        }

        public virtual string Info 
        {
            get 
            { 
                return m_info; 
            }
            protected internal set
            {
                if (m_info != value)
                {
                    m_info = value;
                    NotifyPropertyChanged("Info");
                }
            }
        }
        public virtual string ImageUrl { get; protected internal set; } 
        public virtual int Awards { get; protected internal set; }
       
        public virtual IList<RoleEntity> Roles { get; protected internal set; }
        public PersonMetadata GetMetadata()
        {
            return new PersonMetadata()
            {
                Id = this.Id,
                Name = this.Name,
                OverRank = this.OverRank,
                UserRank = this.UserRank
            };
        }
    }
}
